import {defHttp} from "@/utils/http/axios";

export function geAdminMenusList(param) {
  return defHttp.get({url: `/admin/menus`});
}

export function createAdminMenus(data) {
  return defHttp.post({url: `/admin/menus`, data});
}

export function updateAdminMenus(data) {
  const { id } = data
  return defHttp.put({url: `/admin/menus/${id}`, data});
}

export function deleteAdminMenus(data) {
  const { id } = data
  return defHttp.delete({url: `/admin/menus/${id}`});
}
